﻿using System.Configuration;

namespace SistemadeEstágios.DAL
{



	public static class ConfiguracaoBanco
	{
		private static string dbConnectionString;
		private static string dbProviderName = "MySql.Data.MySqlClient";


		static ConfiguracaoBanco()
		{
			string strServer = ConfigurationManager.AppSettings["servidor"];
			string strBD = ConfigurationManager.AppSettings["banco"];

			dbConnectionString = "Server=" + strServer + ";User ID=root;Password=ik9rru2j; Integrated Security=true; Persist Security Info=True;Respect Binary Flags=False;Database=" + strBD;
		}

		/// <summary>
		/// String de conexao do banco principal
		/// </summary>
		public static string DbConnectionString
		{
			get { return dbConnectionString; }
		}

		public static string DbProviderName
		{
			get { return dbProviderName; }
		}
	}
}
